﻿
#Region "Imports Directive"

Imports System

#End Region

Namespace C4F.DevKit.Bluetooth

    Namespace FileTransferProfile

        ''' <summary>
        ''' EventArgs class to be used when an SendFile operation 
        ''' completes.
        ''' </summary>
        Public Class SendFileCompletedEventArgs
            Inherits ComponentModel.AsyncCompletedEventArgs

#Region "Private Members"

            ''' <summary>
            ''' The location of the file on local device that is being pushed
            ''' on remote device.
            ''' </summary>
            Private locFilePath As String

#End Region

#Region "Public Properties"

            ''' <summary>
            ''' The location of the file on local device that is being pushed
            ''' on remote device.
            ''' </summary>
            Public ReadOnly Property LocalFilePath() As String

                Get
                    Return Me.locFilePath
                End Get

            End Property

#End Region

#Region "Constructor"

            ''' <summary>
            ''' Initializes the SendFileCompletedEventArgs object.
            ''' </summary>
            ''' <param name="localFilePath">The location of the file on local device
            ''' that is being pushed on remote device.</param>        
            ''' <param name="error">An error that occurred during the 
            ''' asynchronous operation.</param>
            ''' <param name="cancelled">A value indicating whether the 
            ''' asynchronous operation was
            ''' cancelled.</param>
            ''' <param name="userState">The user-supplied state object
            ''' supplied when the asynchronous operation was requested.</param>
            Public Sub New(ByVal localFilePath As String, ByVal [error] As Exception, _
                            ByVal cancelled As Boolean, ByVal userState As Object)

                MyBase.New([error], cancelled, userState)
                Me.locFilePath = localFilePath

            End Sub

#End Region

        End Class
    End Namespace
End Namespace
